package com.yanqu.road.entity.log.hongxian;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_activity_hong_xian_fate", autoSave = true, dataUpload = true, eventName = "red_fate", desc = "续缘日志")
public class LogHongXianFate extends BaseLogEntity {

    @FieldTypeAnnotation(desc = "活动id", dataAttribute = "activityid")
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家id")
    private long userId;

    @FieldTypeAnnotation(desc = "敲击次数", dataAttribute = "red_nums")
    private int realTimes;

    @FieldTypeAnnotation(desc = "获得货币数", dataAttribute = "red_score")
    private long getScore;

    @FieldTypeAnnotation(desc = "当前货币数", dataAttribute = "red_nowscore")
    private long totalScore;

    @FieldTypeAnnotation(desc = "碎片")
    private String memIds;

    @FieldTypeAnnotation(desc = "碎片", insert = false, dataAttribute = "red_getmem")
    private List<Integer> memIdList;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogHongXianFate(int activityId, long userId, int realTimes, long getScore, long totalScore, String memIds, List<Integer> memIdList) {
        this.activityId = activityId;
        this.userId = userId;
        this.realTimes = realTimes;
        this.getScore = getScore;
        this.totalScore = totalScore;
        this.memIds = memIds;
        this.memIdList = memIdList;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getRealTimes() {
        return realTimes;
    }

    public void setRealTimes(int realTimes) {
        this.realTimes = realTimes;
    }

    public long getGetScore() {
        return getScore;
    }

    public void setGetScore(long getScore) {
        this.getScore = getScore;
    }

    public long getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(long totalScore) {
        this.totalScore = totalScore;
    }

    public String getMemIds() {
        return memIds;
    }

    public void setMemIds(String memIds) {
        this.memIds = memIds;
    }

    public List<Integer> getMemIdList() {
        return memIdList;
    }

    public void setMemIdList(List<Integer> memIdList) {
        this.memIdList = memIdList;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
